package com.mingqijia.gassafety.shared.request.bi;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 工单vo
 *
 * @author liutengfei
 * @date: 2021-04-19
 */
@EqualsAndHashCode(callSuper = false)
@Data
public class BiQueryRemoteRequest {

    @ApiModelProperty(value = "组合方式")
    private String combineType = "AND";

    @ApiModelProperty(value = "过滤条件")
    private BiFilterRemoteRequest filter;

    @ApiModelProperty(value = "从第几条开始")
    private Integer offset = 0;

    @ApiModelProperty(value = "一页显示多少条")
    private Integer limit = 10;

    @ApiModelProperty(value = "过滤条件")
    private BiSortFactorRemoteRequest sortFactor;

    public BiQueryRemoteRequest() {
    }

    public BiQueryRemoteRequest(BiFilterRemoteRequest filter, Integer offset, Integer limit) {
        this.filter = filter;
        this.offset = offset;
        this.limit = limit;
    }

    public BiQueryRemoteRequest(BiFilterRemoteRequest filter, Integer offset, Integer limit, BiSortFactorRemoteRequest sortFactor) {
        this.filter = filter;
        this.offset = offset;
        this.limit = limit;
        this.sortFactor = sortFactor;
    }
}
